package com.huike.business.service;


import com.huike.business.domain.TbBusiness;
import com.huike.business.domain.dto.TbBusinessDto;
import com.huike.business.domain.dto.TbBusinessGainDto;
import com.huike.business.domain.dto.TbBusinessPoolDto;
import com.huike.business.domain.vo.TbBusinessVo;

import java.util.List;

public interface TbBusinessService {
    /**
     * 条件分页查询
     */
    List<TbBusinessVo> page(TbBusinessDto kdBusinessDto);

    /**
     * 添加商机
     */
    int add(TbBusiness tbBusiness);
    /**
     * 根据Id查询信息
     */
    TbBusiness findById(Long businessId);

    /**
     * 修改商机

     * @return
     */
    int update(TbBusiness tbBusiness);

    /**
     *公海池条件分页查询
     * @param tbBusinessPoolDto
     * @return
     */
    List<TbBusiness> poolPage(TbBusinessPoolDto tbBusinessPoolDto);

    /**
     * 退回公海
     * @param id
     * @param reporting
     * @return
     */
    int returnSea(Long id, Long reporting);


    /**
     * 公海池捞取商机
     */
    int gain(TbBusinessGainDto tbBusinessGainDto);

}
